import 'package:fish_redux/fish_redux.dart';

enum EngineerGasOpenViewAction {
  action,
  onSetStep,
  onTapAddPic,
  onTapPic,
  onSubmit,
  onSetConfigData,
  onTap,
}

class EngineerGasOpenViewActionCreator {
  static Action onAction() {
    return const Action(EngineerGasOpenViewAction.action);
  }

  static Action onSetStep(step) {
    return Action(EngineerGasOpenViewAction.onSetStep, payload: step);
  }

  static Action onSetConfigData(model, data) {
    return Action(
      EngineerGasOpenViewAction.onSetConfigData,
      payload: {'data': data, 'model': model},
    );
  }

  static Action onTapPic(model, data) {
    return Action(
      EngineerGasOpenViewAction.onTapPic,
      payload: {'data': data, 'model': model},
    );
  }

  static Action onTapAddPic(model) {
    return Action(EngineerGasOpenViewAction.onTapAddPic, payload: model);
  }

  static Action onSubmit() {
    return const Action(EngineerGasOpenViewAction.onSubmit);
  }

  static Action onTap(type, model, file) {
    return Action(EngineerGasOpenViewAction.onTap,
        payload: {'type': type, 'model': model, 'file': file});
  }
}
